package com.cn.jinl.domain;

import org.apache.commons.lang3.StringUtils;

import java.util.Date;

public class LinePeiBan {
    private String peiId;

    private String banName;

    private String startTime;

    private String endTime;

    private String collectTime;

    private String timeTarget;

    private String remark;

    private String banUserName;

    private Date createTime;

    private String preStartTime;

    public String getPeiId() {
        return peiId;
    }

    public void setPeiId(String peiId) {
        this.peiId = peiId == null ? null : peiId.trim();
    }

    public String getBanName() {
        return banName;
    }

    public void setBanName(String banName) {
        this.banName = banName == null ? null : banName.trim();
    }

    public String getShowStartTime() {
        if(StringUtils.isNotEmpty(getStartTime())){
            return getStartTime().split(" ")[1];
        }
        return startTime;
    }
    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime == null ? null : startTime.trim();
    }

    public String getShowEndTime() {
        if(StringUtils.isNotEmpty(getEndTime())){
            return getEndTime().split(" ")[1];
        }
        return endTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime == null ? null : endTime.trim();
    }

    public String getCollectTime() {
        return collectTime;
    }

    public void setCollectTime(String collectTime) {
        this.collectTime = collectTime == null ? null : collectTime.trim();
    }

    public String getTimeTarget() {
        return timeTarget;
    }

    public void setTimeTarget(String timeTarget) {
        this.timeTarget = timeTarget == null ? null : timeTarget.trim();
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim();
    }

    public String getBanUserName() {
        return banUserName;
    }

    public void setBanUserName(String banUserName) {
        this.banUserName = banUserName == null ? null : banUserName.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getPreStartTime() {
        return preStartTime;
    }

    public void setPreStartTime(String preStartTime) {
        this.preStartTime = preStartTime;
    }
}